package com.org.csu.entity;

import jakarta.persistence.*;

import static jakarta.persistence.GenerationType.IDENTITY;

/**
 * @author fengyang
 * @version V1.0
 * Copyright (c) 2024, fengyang@hwadee.com All Rights Reserved.
 * @ProjectName:e-commerce-back
 * @Title: UserRecord
 * @Package com.org.csu.entity
 * @Description: userrecord
 * @date 2024/12/15 20:54
 */
@Entity
@Table(name = "userrecord")
public class UserRecord {
    @Id
    @Column(name = "userid")
    private Integer userId;

    @Column(name = "recordid")
    private Integer recordId;

    @Column(name = "date")
    private String date;

    @Column(name = "keyword")
    private String keyword;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getRecordId() {
        return recordId;
    }

    public void setRecordId(Integer recordId) {
        this.recordId = recordId;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public UserRecord(){}

    public UserRecord(Integer userId, Integer recordId, String date, String keyword) {
        this.userId = userId;
        this.recordId = recordId;
        this.date = date;
        this.keyword = keyword;
    }
}